<template>
  <view class="container">
    <!-- 顶部返回箭头 -->
    <view class="header" style="background-color: #ffcc00; height: 180rpx; display: flex;">
      <image
        class="back-icon"
        src="../../../static/tabbar/返回.png"
        alt="返回"
        @click="handleBack"
      />
      <text class="title">开具发票</text>
    </view>

    <!-- 主内容区域 -->
    <view class="main-content">
      <view class="message">
        <text>开具发票加微信</text>
      </view>
    </view>
  </view>
</template>

<script setup>
const handleBack = () => {
  uni.navigateBack();
};
</script>

<style scoped lang="scss">
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header {
  padding: 10px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #ddd;

  .back-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
  }

  .title {
    margin-left: 10px;
    font-size: 18px;
    font-weight: bold;
  }
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  .message {
    font-size: 24px;
    color: #333;
  }
}
</style>
